package com.suncnpap.journal.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.util.database.mybatis.Page;
import com.suncnpap.journal.service.JournalTypeService;
import com.suncnpap.journal.mapper.JournalTypeMapper;
import com.suncnpap.journal.model.JournalType;

/** 
 * 说明： 期刊类型Service实现类
 * @version
 */
@Service("journalTypeService")
public class JournalTypeServiceImpl implements JournalTypeService{

	
	@Autowired
	JournalTypeMapper journalTypeMapper;
	
	@Override
	public void add(JournalType obj) {
		// TODO Auto-generated method stub
		journalTypeMapper.add(obj);
	}

	@Override
	public void update(JournalType obj) {
		// TODO Auto-generated method stub
		journalTypeMapper.edit(obj);
	}

	@Override
	public void deleteById(String strId) {
		// TODO Auto-generated method stub
		journalTypeMapper.deleteById(strId);
		
	}
	@Override
	public void deleteMore(String[] strIds) {
		// TODO Auto-generated method stub
		journalTypeMapper.deleteMore(strIds);
	}

	@Override
	public Page list(Page page) {
		// TODO Auto-generated method stub
		List<JournalType> list = journalTypeMapper.datalistPage(page);
		page.setDataList(list);
		return page;
	}


	@Override
	public int findCount(Page page) {
		// TODO Auto-generated method stub
		return journalTypeMapper.findCount(page);
	}

	@Override
	public JournalType findById(String strId) {
		// TODO Auto-generated method stub
		return journalTypeMapper.findById(strId);
	}
	
}

